<template>
  <div>
    这个是model---子组件--{{ aa }}--{{ bb }}
    <button @click="hClick">子组件按钮</button>
  </div>
</template>

<script>
export default {
  props: {
    // 只读的属性
    aa: {
      type: Number,
      default: 0
    },
    bb: {
      type: Number,
      default: 0
    }
  },

  methods: {
    hClick() {
      this.$emit('update:aa', this.num + 1)
      this.$emit('update:bb', this.num2 + 1)
    }
  }
}
</script>

